Vector Indexes
Route: indexes Description: Contains a project's Vector Index
Endpoints
Get Index Status
Get the status of the index
Endpoint
https://api.botdojo.com/api/v1/:account_id/projects/:project_id/indexes/getStatus
Parameters (Array)
Index | Name | Description | Type |
---|---|---|---|
0 | indexId | The id of the index | String |
Returns
- results - IndexStatus
Example
curl -X POST -H "Content-Type: application/json" -H " Authorization: YOUR_API_KEY" -d '{
[
"indexId"]
}' "https://api.botdojo.com/api/v1/:account_id/projects/:project_id/indexes/getStatus"
Search Vector Index
Search the vector index
Endpoint
https://api.botdojo.com/api/v1/:account_id/projects/:project_id/indexes/search
Parameters (Array)
Index | Name | Description | Type |
---|---|---|---|
0 | indexId | The id of the index | String |
1 | query | The query to search for | String |
2 | filter | The filter to apply | Object |
3 | limits | The number of results to return | Number |
Returns
- results - Array
Example
curl -X POST -H "Content-Type: application/json" -H " Authorization: YOUR_API_KEY" -d '{
[
"indexId",
"query",
{},
0]
}' "https://api.botdojo.com/api/v1/:account_id/projects/:project_id/indexes/search"